package com.woniuxy.car.commodity.service.core.dto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Title: CommodityDto
 * @ProjectName: car-life2
 * @Description: TODO
 * @Author: xiong
 * @Date: 2022/3/2 10:15
 */
@Data
@ApiModel("商品dto对象")
public class CommodityDto {

    @ApiModelProperty("商品类别id")
    private Integer classId;

    @ApiModelProperty("搜索关键字")
    private String keywords;

    @ApiModelProperty("排序规则（1：综合，2：价格升序、3：价格降序，4：销量")
    private Integer orderRule;

    @ApiModelProperty("价格区间的最低价")
    private Integer lowPrice;

    @ApiModelProperty("价格区间的最高价")
    private Integer highPrice;

    @ApiModelProperty("商品标签")
    private List<String> Label;

    @ApiModelProperty("商品主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品标题")
    private String title;

    @ApiModelProperty("商品名")
    private String name;

    @ApiModelProperty("是否到店安装0为不到店，1为到店)")
    private Integer toShop;

    @ApiModelProperty("商品图片")
    private String pic;

    @ApiModelProperty("商品视频")
    private String video;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("商品库存")
    private Integer stock;

    @ApiModelProperty("商品活动价")
    private BigDecimal promotionPrice;

    @ApiModelProperty("店铺id")
    private Integer shopId;

    @ApiModelProperty("限购数量（0为不限购）")
    private Integer limitCount;

    @ApiModelProperty("是否是次日达")
    private Integer nextDayAir;

    @ApiModelProperty("上架时间")
    private LocalDateTime groundingTime;

    @ApiModelProperty("下架时间")
    private LocalDateTime downTime;

    @ApiModelProperty("商品状态（上架1，下架0）")
    private Integer grounding;

    @ApiModelProperty("是否是正品自营")
    private Integer certified;

    @ApiModelProperty("综合排序数")
    private BigDecimal synthesize;

    @ApiModelProperty("销量")
    private Integer saleNum;

    @ApiModelProperty("运费")
    private BigDecimal freight;

    @ApiModelProperty("商品评价标签")
    private List<Object> commentLabel;

    @TableField(exist = false)
    @ApiModelProperty("商品轮播图")
    private List<String> pics;

    @TableField(exist = false)
    @ApiModelProperty("商品参数")
    private List<Object> param;

    @TableField(exist = false)
    @ApiModelProperty("商品规格")
    private List<Object> format;
}
